import { Tree, type TreeNode } from "../packages";

export default function App() {
  const data: TreeNode[] = [
    {
      id: 1,
      name: "parent1",
      children: [
        {
          id: 2,
          name: "child1",
          children: [],
          selected: true,
        },
        {
          id: 3,
          name: "child2",
          children: [],
          selected: true,
        },
      ],
      selected: true,
    },
    {
      id: 4,
      name: "parent2",
      children: [
        {
          id: 5,
          name: "child5",
          children: [
            {
              id: 6,
              name: "child6",
              children: [],
              selected: true,
            },
            {
              id: 7,
              name: "child7",
              children: [],
              selected: true,
            },
          ],
          selected: true,
        },
      ],
      selected: true,
    },
  ];
  return <Tree data={data} onChange={()=>{}}></Tree>;
}
